package com.anycl.design.behavioral.nullobject.instancetwo;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ConcreteGoods extends AbstractGoods {

    public ConcreteGoods(String isbn, String name, Double price) {
        this.isbn = isbn;
        this.name = name;
        this.price = price;
    }

    @Override
    public void show() {
        log.info("商品名：" + this.name + " 价格：" + this.price);
    }
}
